package com.van.service.sys;

import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.TimeUnit;

/**
 * 功能:
 * 作者:代顺福
 * 电话:18628178473   qq:893858134
 * 创建时间:2019/8/21 : 11:30
 * 版权所有,请勿盗用
 */
public interface RedisService {

    /**
     * 根据key设置值
     *
     * @param key
     * @param value
     * @return
     */
    public boolean set(final String key, Object value);

    public boolean set(final String key, Object value, Long expireTime);

    public void remove(final String... keys);

    public void removePattern(final String pattern);

    public void remove(final String key);

    public Object get(final String key);

    public void hmSet(String key, Object hashKey, Object value);

    public Object hmGet(String key, Object hashKey);

    public Map<Object, Object> hOneGet(String key);

    public void hmDel(String key, Object hashKey);

    public void lPush(String k, Object v);

    public Object lPop(String k);

    public Object lPop(String k, int time, TimeUnit timeUnit);

    public List<Object> lRange(String k, long l, long l1);

    public void add(String key, Object value);

    public Set<Object> setMembers(String key);

    public void zAdd(String key, Object value, double scoure);

    public Set<Object> rangeByScore(String key, double scoure, double scoure1);

}